jQuery(function($){
	//swiper
	var swiper = new Swiper('.swiper-container', {
		pagination : '.swiper-pagination',
		loop : true,
		autoplay : 2000,
		speed:1000,
		autoplayDisableOnInteraction : false
	});
	$.ajax({
		url:'json/index.json',
		type:'GET',
		dataType:'json',
		success:function(data){
			var str=template('template-s',{arr:data})
			$('.gzmc').html(str);
		}
	})
	$('.fla').mousedown(function(){
		$(this).css("background","#ccc");
		location.href='html/jingzhuang.html';
	})
	$('.flb').mousedown(function(){
		$(this).css("background","#ccc");
		location.href='html/miaorenwu.html';
	})
	$('.flc').mousedown(function(){
		$(this).css("background","#ccc");
		location.href='html/fujinjianzhi.html';
	})
	$('.fld').mousedown(function(){
		$(this).css("background","#ccc");
		location.href='html/jianzhilvxing.html';
	})
	$('.head-left').click(function(){
		$(this).css("background","#ccc");
		location.href='html/xzchengshi.html';
	});
	$('.head-center').click(function(){
		location.href='html/indexsousuo.html';
	});
	$('.head-right').click(function(){
		location.href='html/qiandaor.html';
	})
});
